home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000094_fdc@columbia.edu_Sat Apr 23 12:08:38 2005.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: scheduling in kermit ?
Date: 23 Apr 2005 16:08:20 GMT
Organization: Columbia University
Lines: 45
Message-ID: <slrnd6ksnk.epr.fdc@sesame.cc.columbia.edu>
References: <1114263286.329364.298210@o13g2000cwo.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1114272500 1749 128.59.59.56 (23 Apr 2005 16:08:20 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 23 Apr 2005 16:08:20 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15330
On 2005-04-23, vikrant.shahir@gmail.com <vikrant.shahir@gmail.com> wrote:
: The dialing script worked and now file can be transfered from PC-A to
: PC-B over GSM network, via GSM modem.
:
: NOW:
: Now i am looking out at the answering computer(PC-B) to work in 2 ways.
:
: 1] To be in answering mode throughout:
: This task is done by setting "ats0=1".
:
: 2] To dial out at a regular interval(SCHEDULING....?)
: How to achieve this ?
:
: The idea is , the answering computer(PC-B) will remain constantly in answer
: mode to recieve any incomming calls plus dial out to server after every 30
: minutes to upload the file. So how will the PC-B be scheduled to dial out
: after every 30 mins. ?
:
Something like this:
set modem type xxx
set line /dev/ttyS0
if fail exit 1
; (configure modem to disable caller ID feature)
.interval ::= 30*60 ; Number of seconds in half an hour
while true {
.t1 := \v(ntime) ; Current time in seconds since midnight
answer \m(interval) ; Wait \v(interval) secs for call
if success {
(handle incoming call)
}
.t2 := \v(ntime) ; New time
if not > \m(t2) \m(t1) increment t2 86400
.interval ::= \m(interval) - (\m(t2) - \m(t1))
if <= \m(interval) 0 {
(it is time to make a call - use DIAL command)
.interval ::= 30*60
}
}
The proof is left as an exercise to the reader :-)
- Frank